<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
	<p:messages autoUpdate="true" />
	<h:form>
		<h:panelGrid columns="3" style="margin-bottom:10px" cellpadding="5">

			<p:outputLabel for="hasAnyDebt" value="Volt-e korábban tartozása?" />
			<p:selectOneMenu id="hasAnyDebt" required="true" value="#{customerMaintBean.loanApplication.verification.hasAnyDebt}">
				<f:selectItem itemLabel="Kérem válasszon!" itemValue="" />
				<f:selectItems value="#{verificationData.hasAnyDebt}" />
			</p:selectOneMenu>
			<p:message for="hasAnyDebt" />

			<p:outputLabel for="hadAnyDelay" value="Volt-e korábban késedelme?" />
			<p:selectOneMenu id="hadAnyDelay" required="true" value="#{customerMaintBean.loanApplication.verification.hadAnyDelay}">
				<f:selectItem itemLabel="Kérem válasszon!" itemValue="" />
				<f:selectItems value="#{verificationData.hadAnyDelay}" />
			</p:selectOneMenu>
			<p:message for="hadAnyDelay" />

			<p:outputLabel for="isCheatingSuspiciousTransactionsOkay" value="Csalásgyanús bankszámlatranzakciók ellenőrzése rendben?" />
			<p:selectOneMenu id="isCheatingSuspiciousTransactionsOkay" required="true" value="#{customerMaintBean.loanApplication.verification.isCheatingSuspiciousTransactionsOkay}">
				<f:selectItem itemLabel="Kérem válasszon!" itemValue="" />
				<f:selectItems value="#{verificationData.isCheatingSuspiciousTransactionsOkay}" />
			</p:selectOneMenu>
			<p:message for="isCheatingSuspiciousTransactionsOkay" />

			<p:outputLabel value="Verifikáción megfelelt" />
			<p:graphicImage rendered="#{customerMaintBean.loanApplication.isVerificationApproved}" library="img" name="approved_2.png" />
			<p:graphicImage rendered="#{!customerMaintBean.loanApplication.isVerificationApproved}" library="img" name="disapproved_2.png" />


		</h:panelGrid>
		<p:commandButton process="@form" update="@form" value="Mentés" disabled="#{customerMaintBean.loanApplication.status gt 2}"/>
		<p:commandButton process="@form" update="@form" value="Kiértékelés" action="#{customerMaintBean.verificationEvaluation()}" disabled="#{customerMaintBean.loanApplication.status gt 2}"/>
	</h:form>
</ui:composition>